import React from 'react';
class Input extends React.Component {
    render() {
        let {value,onChange,onSubmit} = this.props
        return <div className=''>
            <input 
              type="text" 
              value={value} 
              onChange={onChange}
              onKeyDown={(e)=>e.keyCode==13?onSubmit():null}  
              />
        </div>;
    }
}
export default Input